package com.dsa.team5.kanban.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "Status")
public class Status implements Serializable {

    private static final long serialVersionUID = 1L;

	@Id
	@Column(name="id")
	@GeneratedValue(strategy = GenerationType.SEQUENCE)
    private Long statusId;

    private String name;
    private int position;
    private String color;
    
    @ManyToOne
    @JoinColumn(name = "kanbanId")
    Kanban kanban;

	public Long getStatusId() {
		return statusId;
	}
	public String getName() {
		return name;
	}
	public void setStatusId(Long statusId) {
		this.statusId = statusId;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getPosition() {
		return position;
	}
	public void setPosition(int position) {
		this.position = position;
	}
	public Kanban getKanban() {
		return kanban;
	}
	public void setKanban(Kanban kanban) {
		this.kanban = kanban;
	}
	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}
    
	
}
